home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / system / g2i12.zip / GRP2INI2 < prev    next >
Text File  |  1995-01-17  |  4KB  |  63 lines

  1.  
  2. The following article appeared in the January 16, 1995 issue of Infoworld:
  3.  
  4.                INFOWORLD's WINDOW MANAGER - by BRIAN LIVINGSTON
  5.  
  6.                Change your .INI settings before Windows starts
  7.  
  8. I  announced  last  week that Tessler's Nifty Tools (TNT),  a  small  software 
  9. company  in  San  Ramon, Calif., has released a utility  called  WrapUp.  This 
  10. program  allows  you to define a ShutDown group in your shell, much  like  the 
  11. StartUp  group. Any icons you define in your ShutDown group will  be  executed 
  12. when Windows exits. This allows you to automate procedures such as logging out 
  13. of  your  network,  backing  up your files  when  no  other  applications  are 
  14. running,and I so on.
  15.  
  16. Combining  this shutdown procedure with two other TNT utilities, however,  can 
  17. give you even greater control over your Windows configuration.
  18.  
  19. The  first  utility is called Config-Controller. This tiny app  gives  you  an 
  20. automated  editor for .INI files, or any plain text file. You define a set  of 
  21. operations you wish to perform on the text file, then run these operations  in 
  22. your AUTOEXEC.BAT file. Although Config-Controller is a DOS program, its  main 
  23. purpose  is controlling Windows, because Windows configuration files  must  be 
  24. changed before the graphical environment starts.
  25.  
  26. One of the most common Windows problems is the dilemma faced by users who need 
  27. two or more configurations. When a PC is used by different office workers  -or 
  28. by parents and their children -you often need to change the configuration that 
  29. some of the users see.
  30.  
  31. In the case of the children using Windows, for example, you might want them to 
  32. see  only  the  Games  group in Program Manager,  and  not  the  other  groups 
  33. containing icons for File Manager, PC Tools, and other powerful programs.
  34.  
  35. Instead  of  creating two PROGMAN.INI or WIN.INI files to hold  two  different 
  36. configurations,  a  much better method is to use Config-Controller.  With  two 
  37. sets of .INI files, changes made by the installation routines of new  software 
  38. are  written  to only one set. With Config-Controller, you merely edit  in  or 
  39. edit out those lines you want to appear or not appear. The simplest way to  do 
  40. this  is  to turn individual lines in an .INI file into comments by  adding  a 
  41. semicolon (;) as the first character. Among other commands,  Config-Controller 
  42. includes COMMENT and UNCOMMENT commands that make this easy.
  43.  
  44. I  last  wrote  about Config-Controller in my April  11,  1994,  column.  (See 
  45. "Control  Your  configuration with these nifty tools," page 30.) But  at  that 
  46. time,  the program was limited by its inability to edit Program Manager  group 
  47. (.GRP)  files.  You could make whole groups appear or disappear  in  different 
  48. configurations by editing PROGMAN.INI, where these groups are listed by  name. 
  49. But  since .GRP files are binary files, not text files, you couldn't  edit  or 
  50. remove individual icons from groups.
  51.  
  52. Gary  Tessler, the author of the TNT set (which now includes more than 30  DOS 
  53. and  Windows utilities), has cracked the .GRP code and made it  accessible  to 
  54. ordinary  mortals.  He has invented a Group-to-Ini  (Grp2Ini)  utility,  which 
  55. converts  .GRP  files  into text files, like .INI files.  A  separate  utility 
  56. converts them back. This is not an easy feat, because the .GRP format contains 
  57. binary data, which is poorly documented at best.
  58.  
  59. Converting  .GRP  files into plain text files, of course, makes them  easy  to 
  60. edit  with  Config-Controller. You might want to make  certain  network  icons 
  61. appear  only when the network is running, for instance -or any of a number  of 
  62. other possibilities.
  63.